package be.gnx.event.consumer.producer;

import java.util.Random;

import org.slf4j.LoggerFactory;

public class Producer {

	private static org.apache.log4j.Logger log4jLogger = org.apache.log4j.Logger
			.getLogger(Producer.class);
	// private ch.qos.logback.classic.Logger logbackLogger =
	// LoggerFactory.getLogger("chapter1.HelloWorld1");
	private static org.slf4j.Logger slf4jLogger = LoggerFactory
			.getLogger(Producer.class);

	public static void main(String[] args) throws Exception {
		for (;;) {
			Random random = new Random();
			Thread.sleep(new Long(random.nextInt(1000)));
			switch (random.nextInt(2)) {
			case 0:
				log4jLogger.error("");
				break;
			case 1:
				slf4jLogger.error("");
				break;
			default:
				break;
			}
		}
	}

}
